package com.fh.service.penalty_interest_reduction;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.fh.mapper.loan.CallLoanInfoMapper;
import com.fh.model.Page;
import com.fh.model.loan.CallLoanInfo;
import com.fh.util.PageData;
import com.fh.util.R;
/**
 * 罚息减免
 * 
 * @author yc
 *
 */
@Service
public class PenaltyInterestReductionServiceImpl implements IPenaltyInterestReductionService{
	@Autowired
	private CallLoanInfoMapper mapper;
	/**
	 * 列表
	 * 
	 */
	@Transactional(readOnly=true)
	public List<PageData> findlistPage(Page page) {
		R.setPageHelper(page.getPd());
		List<PageData> list = mapper.findFaxiPage(page);
		R.setPage(page, list);
		return list;
	}
	/**
	 * 罚息减免申请
	 * 
	 */
	@Transactional(readOnly=true)
	public CallLoanInfo faxijianmianApplyById(String callLoanNid) {
		CallLoanInfo info = mapper.faxijianmianApplyById(callLoanNid);
		return info;
	}
}
